home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / Mops 2.7 / Mops Manual / Part I.srd / Part I.srd.rsrc / PICT_78.png < prev    next >
Portable Network Graphic  |  1996-01-02  |  126KB  |  816x1056  |  8-bit (256 colors)
Labels: book | reckoner | sky | windowpane
OCR: 1-74 Mops Tutorial degree 23 90 ELSE degree THEN at: self 5736 9205 quadrant 5736 9205 5736 9205 and 5736 9205 5736 9205 negate -9205 THEN 5736 -9205 THEN 5736 9205 Now for a description of what happens to each degree value The pou operation in line 18 provides the stack with the remainder of dividing the degree entry by 360. If'the entry was 360 or more, this will normal lize the degree value to be between and 359 11 the entry was negative the mod operation returns negative value betw een -359 and 0 and further normalization Is rpuired Line 19 tests the result to see if it was negative, and if it was negative, sppe 360 to convert it to the equivalent positive angle correctly in the range 0 to 359 The /mod operation on line 20 takes the normalized degree value off the stack and returns quo ...